﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SYH.News.Model
{
    public partial class PublicNews
    {
        public PublicNews()
        { }
        #region Model
        private int _id;
        private int _userid = 0;
        private string _title = "";
        private string _keywords = "";
        private string _contents = "";
        private int _viewcount = 0;
        private DateTime _createdate = DateTime.Now;
        private int _columnid = 0;
        private int _isdelete = 0;
        private int _istop = 0;
        private string _summary = "";
        private int _status = 0;
        private int _flag = 0;
        /// <summary>
        /// 
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 用户编号
        /// </summary>
        public int UserId
        {
            set { _userid = value; }
            get { return _userid; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 关键词
        /// </summary>
        public string Keywords
        {
            set { _keywords = value; }
            get { return _keywords; }
        }
        /// <summary>
        /// 内容
        /// </summary>
        public string Contents
        {
            set { _contents = value; }
            get { return _contents; }
        }
        /// <summary>
        /// 访问次数
        /// </summary>
        public int ViewCount
        {
            set { _viewcount = value; }
            get { return _viewcount; }
        }
        /// <summary>
        /// 发布日期
        /// </summary>
        public DateTime CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        /// <summary>
        /// 栏目编号
        /// </summary>
        public int ColumnId
        {
            set { _columnid = value; }
            get { return _columnid; }
        }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDelete
        {
            set { _isdelete = value; }
            get { return _isdelete; }
        }
        /// <summary>
        /// 是否置顶
        /// </summary>
        public int IsTop
        {
            set { _istop = value; }
            get { return _istop; }
        }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Summary
        {
            set { _summary = value; }
            get { return _summary; }
        }
        /// <summary>
        /// 0待审,1正常,2删除
        /// </summary>
        public int Status
        {
            set { _status = value; }
            get { return _status; }
        }

        /// <summary>
        /// 1主站,2其他
        /// </summary>
        public int Flag
        {
            set { _flag = value; }
            get { return _flag; }
        }
        #endregion Model

    }
}
